<%@ page isELIgnored="false" %> 
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<div width="100%" align="center">
	<h1>哎呀，出错啦 o(︶︿︶)o </h1>
	<br/>
	<p>${ex}</p>
</div>
<script src="${pageContext.request.contextPath}/skin/default/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
//获取url中的参数
function getUrlParam(name) {
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
	var r = window.location.search.substr(1).match(reg); //匹配目标参数
	if (r != null) return decodeURI(r[2]); return null; //返回参数值
}

$(function {
	var error = getUrlParam('error');
	if (error!=null && error!='') {
		alert(getUrlParam("error"));
	}
})
</script>
</body>
</html>